Repository navigation
Remove report level actions from expense rows in Search - #103588
Conversation
|
@Eskalifer1 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 13f840ce6e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Eskalifer1
left a comment
There was a problem hiding this comment.
Let's also address codex comments
|
@codex review |
Eskalifer1
left a comment
There was a problem hiding this comment.
Let's update proposal link as N/A since you didn't post a proposal :)
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@Eskalifer1 thanks for the review. All comments were addressed.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp103588-android-native.movAndroid: mWeb Chrome103588-android-web.moviOS: HybridApp103588-ios-native.moviOS: mWeb Safari103588-ios-web.movMacOS: Chrome / Safari103588-web.mov |
| if (isTransaction && !isInvoiceReport(report)) { | ||
| return [CONST.SEARCH.ACTION_TYPES.VIEW]; |
There was a problem hiding this comment.
This check looks at the report type, not the search type, so it also applies to type:trip. A trip expense that's the only one on its report used to show Submit and now only shows View. The agreement on the issue only covered the Expenses page and type:expense searches, so trips weren't part of it.
The same reasoning probably applies to trips, but let's confirm with @trjExpensify or @mollfpr before merging
2026-10-09.18.21.03.mov
There was a problem hiding this comment.
The same reasoning probably applies to trips, but let's confirm with @trjExpensify or @mollfpr before merging
Yep 👍
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Eskalifer1
left a comment
There was a problem hiding this comment.
LGTM!
Please take a look at this comment before approve: #103588 (comment)
|
🚧 mollfpr has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.5.8-0 🚀
|
|
No help site update needed. Help articles already have users submit, approve, and pay from the Reports view, and the only steps that use Spend > Expenses say to click View, so nothing this change touched is now incorrect. |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.5.8-5 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
On the Expenses tab, an expense that was the only one on its report got that report's Submit/Approve/Pay actions.
For a non-reimbursable report, Pay showed but did nothing.
Per the agreed behaviour, Submit/Approve/Pay are report level actions, so
getActions()now returns View for every expense row.Report rows are unchanged.
This also removes these options from bulk actions when expenses are selected on the Expenses tab.
Fixed Issues
$ #103479
PROPOSAL: N/A
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
mchrome.mov
iOS: Native
ios.mp4
iOS: mWeb Safari
msafari.mp4
MacOS: Chrome / Safari
web.mp4